﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">

<head>
<%@ include file="/include/include.jsp" %>

</head>

<body>
	
	<%@ include file="/include/header.jsp" %>

	<%@ include file="/include/menu.jsp" %>
			
	<div id="mainContent">

		<h2><a href="${ctx}/${menu.url}">${menu.description}</a>&nbsp;-&nbsp;<a href="${ctx}/${submenu.url}">${submenu.description}</a></h2>
		
		<div class="tool-bar">
		</div>
		<form action="${ctx}/system/personal/midfypassword" method="post" onsubmit="return Validator.Validate(this,3)" id="form1">
			
				<c:if test="${not empty infoMessage}">
					<div class="info">
						<span>		
							<fmt:message key="${infoMessage}" />
						</span>
					</div>
				</c:if>
				
				<c:if test="${not empty errorMessage}">
					<div class="error">
						<span>		
							<fmt:message key="${errorMessage}" />
						</span>
					</div>
				</c:if>
	      
			<input  type="hidden" name="user.id" value="${user.id }"/>
			
			<table cellspacing="0" cellpadding="0" class="form-grid" style="text-align:center">
				<tbody>
					<tr>
						<td style="text-align: right; padding-right: 3px; width: 20%;">用户名：</td>
						<td style="text-align: left; padding-right: 3px; width: 20%;"><input size="20" type="text" name="user.name" value="${user.name }" disabled="disabled" /></td>
					</tr>	
					<tr>
						<td style="text-align: right; padding-right: 3px; width: 20%;">原始密码：</td>
						<td  style="text-align: left; padding-right: 3px; width: 20%;"><input type="password" size="20" name="user.password"  dataType="Require" msg="请输入原始密码" /></td>
					</tr>
					<tr>
						<td style="text-align: right; padding-right: 3px; width: 20%;">新密码：</td>
						<td style="text-align: left; padding-right: 3px; width: 20%;"><input type="password" size="20" name="user.repassword" dataType="Repeat" to="user.password" msg="原始密码不能为空，且要两次输入一致" /></td>
					</tr>
					<tr>
						<td style="text-align: right; padding-right: 3px; width: 20%;">新密码确认：</td>
						<td style="text-align: left; padding-right: 3px; width: 20%;"><input type="password" size="20" name="user.newPassword" dataType="Require" msg="请输入新密码" /></td>
					</tr>
					<tr align="center">
						<td colspan="2"> 
							<img src="${ctx}/static/images/saveperson2.png" alt="" onmousemove="this.src='${ctx}/static/images/saveperson2.png'" onmouseout="this.src='${ctx}/static/images/saveperson.png'" onclick="$('form1').submit();"/>
						</td>
					</tr>
				</tbody>
			</table>
		</form>
			
		
	</div>
	
	<%@ include file="/include/script.jsp" %>
	
</body>

</html> 